package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.econ.powercloud.ems.dal.entity.ext.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * iot设备遥控遥调点表
 * @author jwc
 * @since 2023/06/20
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class IotDeviceYkYtDit extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 设备编码
     */
    @TableField(value = "device_code")
    private String deviceCode;

    @TableField(value = "product_key")
    private String productKey;

    /**
     * 遥控遥调类型，1：遥控，2：遥调
     */
    @TableField(value = "remote_type")
    private Integer remoteType;

    /**
     * 遥控/遥调点号名称
     */
    @TableField(value = "dit_name")
    private String ditName;

    /**
     * 遥控/遥调标识
     */
    @TableField(value = "dit")
    private String dit;

    /**
     * 下发地址
     */
    @TableField(value = "push_out_addr")
    private Integer pushOutAddr;

    /**
     * 写入地址
     */
    @TableField(value = "write_in_addr")
    private Integer writeInAddr;

    /**
     * 标签
     */
    @TableField(value = "`label`")
    private String label;

    /**
     * 遥调范围下限
     */
    @TableField(value = "range_start")
    private Double rangeStart;

    /**
     * 遥调范围上限
     */
    @TableField(value = "range_end")
    private Double rangeEnd;

    /**
     * 说明
     */
    @TableField(value = "description")
    private String description;

    /**
     * 单位
     */
    @TableField(value = "unit")
    private String unit;
}